import request from '@/utils/request'

export function getAllSellers () {
  return request({
    url: '/distribute/get/seller',
    method: 'get',
  })
}
export function getCusBySellerId (params) {
  return request({
    url: '/distribute/get/cus',
    method: 'get',
    params
  })
}
export function getNewCus () {
  return request({
    url: '/distribute/get/newcus',
    method: 'get',
  })
}
export function assignCustomer (data) {
  console.log(data);
  return request({
    url: '/distribute/add',
    method: 'post',
    data
  })
}
export function resetCustomer (data) {
  return request({
    url: '/distribute/reset',
    method: 'post',
    data
  })
}
